﻿/*
 *	Copyright (c) 2009 Queensland University of Technology. All rights reserved.
 *	The QUT Bioinformatics Collection is open source software released under the 
 *	Microsoft Public License (Ms-PL): http://www.microsoft.com/opensource/licenses.mspx.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace QUT.Bio.Util {
	public partial class TitleBar : UserControl {
		public TitleBar() {
			InitializeComponent();
			LinearGradientBrush b = new LinearGradientBrush();
			b.StartPoint = new Point( 1, 0 );
			b.EndPoint = new Point( 0, 0 );
			b.GradientStops.Add( new GradientStop());
			b.GradientStops.Add( new GradientStop());
			b.GradientStops[0].Color = Color.FromArgb( 255, 200, 200, 255 );
			b.GradientStops[0].Offset = 0;
			b.GradientStops[1].Color = Color.FromArgb( 255, 200, 200, 255 );
			b.GradientStops[0].Offset = 0.95;
			LayoutRoot.Background = b;
		}
	}
}
